<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Template</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Template</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Template</p>
<p class="description"><p>This class is used to parse templates files in ./template and to output the HTML</p></p>
		<p class="notes">
			Located in <a class="field" href="_functions.php.html">/functions.php</a> (line <span class="field">327</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																												
												<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#display" title="details" class="method-name">display</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tmpl</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$menu</span> = <span class="var-default">TRUE</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#displayAdmin" title="details" class="method-name">displayAdmin</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tmpl</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#displayAdminCont" title="details" class="method-name">displayAdminCont</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$txt</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#displayCont" title="details" class="method-name">displayCont</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$txt</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$menu</span> = <span class="var-default">TRUE</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#fileExists" title="details" class="method-name">fileExists</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getMain" title="details" class="method-name">getMain</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getMenu" title="details" class="method-name">getMenu</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#jqPopup" title="details" class="method-name">jqPopup</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$title</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#parse" title="details" class="method-name">parse</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$match</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$replace</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#readTemplate" title="details" class="method-name">readTemplate</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#tablePager" title="details" class="method-name">tablePager</a>
										()
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methoddisplay" id="display"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">display</span> (line <span class="line-number">413</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">display</p>
<p class="description"><p>Displays the main page using the template name given for the main content</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			display
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tmpl</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$menu</span> = <span class="var-default">TRUE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tmpl</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$menu</span><span class="var-description">: OPTIONAL Default value is TRUE</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddisplayAdmin" id="displayAdmin"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">displayAdmin</span> (line <span class="line-number">496</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">displayAdmin</p>
<p class="description"><p>Displays the admin page using the template name given for the admin content</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			displayAdmin
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tmpl</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tmpl</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddisplayAdminCont" id="displayAdminCont"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">displayAdminCont</span> (line <span class="line-number">477</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">displayAdminCont</p>
<p class="description"><p>Displays the admin page and allows you to specify the content</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			displayAdminCont
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$txt</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$txt</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddisplayCont" id="displayCont"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">displayCont</span> (line <span class="line-number">449</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">displayCont</p>
<p class="description"><p>Displays the main page and allows you to specify the content</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			displayCont
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$txt</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$menu</span> = <span class="var-default">TRUE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$txt</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$menu</span><span class="var-description">: OPTIONAL Default value is TRUE</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfileExists" id="fileExists"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">fileExists</span> (line <span class="line-number">336</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">fileExists</p>
<p class="description"><p>Used to see if we have a template file by the name given</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			fileExists
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetMain" id="getMain"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getMain</span> (line <span class="line-number">364</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">getMain</p>
<p class="description"><p>Reads the main template file from the disk</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getMain
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetMenu" id="getMenu"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getMenu</span> (line <span class="line-number">381</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">getMenu</p>
<p class="description"><p>Reads the menu template file from the disk</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getMenu
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodjqPopup" id="jqPopup"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">jqPopup</span> (line <span class="line-number">548</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">jqPopup</p>
<p class="description"><p>Inserts the HTML for a popup with the provided content  * @param string $title</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			jqPopup
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$title</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$html</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$title</span>			</li>
				</ul>
		
			
	</div>
<a name="methodparse" id="parse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">parse</span> (line <span class="line-number">401</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">parse</p>
<p class="description"><p>Parses the given $content for $match and replaces it with $replace</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			parse
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$match</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$replace</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$match</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$replace</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$content</span>			</li>
				</ul>
		
			
	</div>
<a name="methodreadTemplate" id="readTemplate"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">readTemplate</span> (line <span class="line-number">351</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">readTemplate</p>
<p class="description"><p>Reads a template file from the disk. No checks for the file are made</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			readTemplate
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtablePager" id="tablePager"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">tablePager</span> (line <span class="line-number">521</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">tablePager</p>
<p class="description"><p>Inserts the pager HTML for the table sorter pager</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			tablePager
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 18 Apr 2010 10:58:12 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>